package page

import (
	"go-admin-official/models"
	"html/template"
)

type Page struct {
	User    models.UsersModel
	Content Content
}

func NewPage(user models.UsersModel) Page {
	return Page{User: user}
}

func NewPageWithContent(user models.UsersModel, c Content) Page {
	return Page{User: user, Content: c}
}

type Content struct {
	Title     string
	SubTitle  string
	HeadTitle string
	Content   template.HTML
}
